package com.sky.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel(description = "接收新增员工信息的数据模型")
public class EmployeeDTO implements Serializable {
    @NotNull(groups = edit.class )
    @ApiModelProperty("员工id")
    private Long id;

    @NotEmpty
    @ApiModelProperty("员工用户名")
    private String username;

    @NotEmpty
    @ApiModelProperty("员工姓名")
    private String name;

    @NotEmpty
    @ApiModelProperty("员工电话")
    private String phone;

    @NotEmpty
    @ApiModelProperty("员工性别")
    private String sex;

    @NotEmpty
    @ApiModelProperty("员工身份证")
    private String idNumber;
    public interface edit{}
}
